public Backup clear()

in ttl-core/src/main/java/com/alibaba/crr/composite/CompositeTransmittable.java [110:128]


    public Backup clear() {
        final Object data = callback.beforeReplay();

        final HashMap<Transmittable<Object, Object>, Object> transmit2Value = newHashMap(registeredTransmittableSet.size());
        for (Transmittable<Object, Object> transmittable : registeredTransmittableSet) {
            try {
                transmit2Value.put(transmittable, transmittable.clear());
            } catch (Throwable t) {
                propagateIfFatal(t);
                if (logger.isLoggable(Level.WARNING)) {
                    logger.log(Level.WARNING, "exception when clear for transmittable " + transmittable +
                            "(class " + transmittable.getClass().getName() + "), just ignored; cause: " + t, t);
                }
            }
        }

        final Object afterData = callback.afterReplay(data);
        return new Snapshot(transmit2Value, afterData);
    }