org.wildfly.clustering.ejb.cache.timer.IntervalTimerMetaDataEntryMarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wildfly-clustering-ejb-cache Show documentation
Show all versions of wildfly-clustering-ejb-cache Show documentation
Contains code common to the wildfly-clustering-ejb-hotrod and wildfly-clustering-ejb-infinispan modules.
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.clustering.ejb.cache.timer;
import java.io.IOException;
import java.time.Duration;
import java.time.Instant;
import org.infinispan.protostream.descriptors.WireType;
import org.wildfly.clustering.marshalling.protostream.ProtoStreamMarshaller;
import org.wildfly.clustering.marshalling.protostream.ProtoStreamReader;
import org.wildfly.clustering.marshalling.protostream.ProtoStreamWriter;
import org.wildfly.clustering.marshalling.ByteBufferMarshalledValue;
import org.wildfly.clustering.marshalling.MarshalledValue;
/**
* @author Paul Ferraro
*/
public class IntervalTimerMetaDataEntryMarshaller implements ProtoStreamMarshaller> {
private static final int INFO_INDEX = 1;
private static final int START_INDEX = 2;
private static final int LAST_TIMEOUT_INDEX = 3;
private static final int INTERVAL_INDEX = 4;
private static final Instant DEFAULT_START = Instant.EPOCH;
@SuppressWarnings("unchecked")
@Override
public Class extends IntervalTimerMetaDataEntry