@Internal public class InternalTimerServiceSerializationProxy<K,N> extends PostVersionedIOReadableWritable
Modifier and Type | Field and Description |
---|---|
static int |
VERSION |
Constructor and Description |
---|
InternalTimerServiceSerializationProxy(Map<String,HeapInternalTimerService<K,N>> timerServicesMapToPopulate,
ClassLoader userCodeClassLoader,
int totalKeyGroups,
KeyGroupsList localKeyGroupRange,
KeyContext keyContext,
ProcessingTimeService processingTimeService,
int keyGroupIdx)
Constructor to use when restoring timer services.
|
InternalTimerServiceSerializationProxy(Map<String,HeapInternalTimerService<K,N>> timerServices,
int keyGroupIdx)
Constructor to use when writing timer services.
|
Modifier and Type | Method and Description |
---|---|
int |
getVersion()
Returns the version number of the object.
|
protected void |
read(DataInputView in,
boolean wasVersioned)
Read from the provided
in . |
void |
write(DataOutputView out)
Writes the object's internal data to the given data output view.
|
read, read
getCompatibleVersions, getReadVersion
public static final int VERSION
public InternalTimerServiceSerializationProxy(Map<String,HeapInternalTimerService<K,N>> timerServicesMapToPopulate, ClassLoader userCodeClassLoader, int totalKeyGroups, KeyGroupsList localKeyGroupRange, KeyContext keyContext, ProcessingTimeService processingTimeService, int keyGroupIdx)
public InternalTimerServiceSerializationProxy(Map<String,HeapInternalTimerService<K,N>> timerServices, int keyGroupIdx)
public int getVersion()
Versioned
public void write(DataOutputView out) throws IOException
IOReadableWritable
write
in interface IOReadableWritable
write
in class PostVersionedIOReadableWritable
out
- the output view to receive the data.IOException
- thrown if any error occurs while writing to the output streamprotected void read(DataInputView in, boolean wasVersioned) throws IOException
PostVersionedIOReadableWritable
in
. A flag wasVersioned
can be
used to determine whether or not the data to read was previously written
by a VersionedIOReadableWritable
.read
in class PostVersionedIOReadableWritable
IOException
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.