Class AuthenticatedMessageDeliveryState
-
- All Implemented Interfaces:
-
java.io.Externalizable
,java.io.Serializable
,java.lang.Comparable
,org.apache.avro.generic.GenericContainer
,org.apache.avro.generic.GenericRecord
,org.apache.avro.generic.IndexedRecord
,org.apache.avro.specific.SpecificRecord
public class AuthenticatedMessageDeliveryState extends SpecificRecordBase implements SpecificRecord
State used to track when a net.corda.data.p2p.app.AuthenticatedMessage should be replayed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
AuthenticatedMessageDeliveryState.Builder
RecordBuilder for AuthenticatedMessageDeliveryState instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public AuthenticatedMessageAndKey
message
public long
timestamp
-
Constructor Summary
Constructors Constructor Description AuthenticatedMessageDeliveryState()
Default constructor. AuthenticatedMessageDeliveryState(AuthenticatedMessageAndKey message, Long timestamp)
All-args constructor.
-
Method Summary
Modifier and Type Method Description AuthenticatedMessageAndKey
getMessage()
Gets the value of the 'message' field. void
setMessage(AuthenticatedMessageAndKey value)
Sets the value of the 'message' field. long
getTimestamp()
Gets the value of the 'timestamp' field. void
setTimestamp(long value)
Sets the value of the 'timestamp' field. static Schema
getClassSchema()
static BinaryMessageEncoder<AuthenticatedMessageDeliveryState>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<AuthenticatedMessageDeliveryState>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<AuthenticatedMessageDeliveryState>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this AuthenticatedMessageDeliveryState to a ByteBuffer. static AuthenticatedMessageDeliveryState
fromByteBuffer(ByteBuffer b)
Deserializes a AuthenticatedMessageDeliveryState from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static AuthenticatedMessageDeliveryState.Builder
newBuilder()
Creates a new AuthenticatedMessageDeliveryState RecordBuilder. static AuthenticatedMessageDeliveryState.Builder
newBuilder(AuthenticatedMessageDeliveryState.Builder other)
Creates a new AuthenticatedMessageDeliveryState RecordBuilder by copying an existing Builder. static AuthenticatedMessageDeliveryState.Builder
newBuilder(AuthenticatedMessageDeliveryState other)
Creates a new AuthenticatedMessageDeliveryState RecordBuilder by copying an existing AuthenticatedMessageDeliveryState instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, getConversion, hashCode, toString
-
Methods inherited from class org.apache.avro.generic.GenericRecord
hasField
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AuthenticatedMessageDeliveryState
AuthenticatedMessageDeliveryState()
Default constructor.
-
AuthenticatedMessageDeliveryState
AuthenticatedMessageDeliveryState(AuthenticatedMessageAndKey message, Long timestamp)
All-args constructor.- Parameters:
message
- A copy of the original message in P2P_OUT_TOPIC.timestamp
- The timestamp when the message was originally processed for the first time.
-
-
Method Detail
-
getMessage
AuthenticatedMessageAndKey getMessage()
Gets the value of the 'message' field.
-
setMessage
void setMessage(AuthenticatedMessageAndKey value)
Sets the value of the 'message' field. A copy of the original message in P2P_OUT_TOPIC.
- Parameters:
value
- the value to set.
-
getTimestamp
long getTimestamp()
Gets the value of the 'timestamp' field.
-
setTimestamp
void setTimestamp(long value)
Sets the value of the 'timestamp' field. The timestamp when the message was originally processed for the first time.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<AuthenticatedMessageDeliveryState> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<AuthenticatedMessageDeliveryState> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<AuthenticatedMessageDeliveryState> createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.
- Parameters:
resolver
- a SchemaStore used to find schemas by fingerprint
-
toByteBuffer
ByteBuffer toByteBuffer()
Serializes this AuthenticatedMessageDeliveryState to a ByteBuffer.
-
fromByteBuffer
static AuthenticatedMessageDeliveryState fromByteBuffer(ByteBuffer b)
Deserializes a AuthenticatedMessageDeliveryState from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
newBuilder
static AuthenticatedMessageDeliveryState.Builder newBuilder()
Creates a new AuthenticatedMessageDeliveryState RecordBuilder.
-
newBuilder
static AuthenticatedMessageDeliveryState.Builder newBuilder(AuthenticatedMessageDeliveryState.Builder other)
Creates a new AuthenticatedMessageDeliveryState RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static AuthenticatedMessageDeliveryState.Builder newBuilder(AuthenticatedMessageDeliveryState other)
Creates a new AuthenticatedMessageDeliveryState RecordBuilder by copying an existing AuthenticatedMessageDeliveryState instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
-
-
-