Package org.jgroups.util
Interface Streamable
-
- All Known Subinterfaces:
Address
,COUNTER.Request
,CounterFunction<T>
,Message
,PhysicalAddress
,SiteAddress
,SizeStreamable
- All Known Implementing Classes:
AuthHeader
,AuthToken
,Average
,AverageMinMax
,BaseMessage
,BATCH.BatchHeader
,BATCH2.Batch2Header
,BatchMessage
,ByteArray
,BytesMessage
,CompositeMessage
,COMPRESS.CompressHeader
,COUNTER.AddAndGetRequest
,COUNTER.CompareAndSetRequest
,COUNTER.CounterHeader
,COUNTER.DeleteRequest
,COUNTER.ExceptionResponse
,COUNTER.GetOrCreateRequest
,COUNTER.ReconcileRequest
,COUNTER.ReconcileResponse
,COUNTER.ResendPendingRequests
,COUNTER.SetRequest
,COUNTER.SimpleRequest
,COUNTER.UpdateRequest
,COUNTER.ValueResponse
,DAISYCHAIN.DaisyHeader
,DeltaView
,DH_KEY_EXCHANGE.DhHeader
,Digest
,DrawCommand
,EmptyMessage
,EncryptHeader
,EXAMPLE.ExampleHeader
,ExtendedUUID
,FailureDetection.HeartbeatHeader
,FcHeader
,FD_SOCK.FdHeader
,FD_SOCK2.FdHeader
,FixedMembershipToken
,FlagsUUID
,FORK.ForkHeader
,Frag3Header
,FragHeader
,FragmentedMessage
,GMS.GmsHeader
,GossipData
,GridFile.Metadata
,Header
,IpAddress
,JoinRsp
,Krb5Token
,LongMessage
,LongSizeStreamable
,MERGE3.MergeHeader
,MergeId
,MergeView
,MethodCall
,MutableDigest
,NakAckHeader
,NakAckHeader2
,NioMessage
,NullAddress
,ObjectMessage
,ObjectWrapperPrimitive
,ObjectWrapperSerializable
,Owner
,PDC.Mapping
,PERF.PerfHeader
,PingData
,PingHeader
,ProtPerfHeader
,Range
,RegexMembership
,RelayHeader
,RequestCorrelator.Header
,RequestCorrelator.MultiDestinationHeader
,RSVP.RsvpHeader
,RTTHeader
,SeqnoList
,SEQUENCER.SequencerHeader
,SEQUENCER2.SequencerHeader
,SiteMaster
,SiteUUID
,STABLE.StableHeader
,STATE_TRANSFER.StateHeader
,STOMP.StompHeader
,StreamingStateTransfer.StateHeader
,TpHeader
,UnicastHeader
,UnicastHeader3
,UUID
,VERIFY_SUSPECT.VerifyHeader
,VERIFY_SUSPECT2.VerifyHeader
,View
,ViewId
,X509Token
public interface Streamable
Implementations of Streamable can add their state directly to the output stream, enabling them to bypass costly serialization- Author:
- Bela Ban
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedvoid
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
-
-
-
Method Detail
-
writeTo
void writeTo(java.io.DataOutput out) throws java.io.IOException
Write the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Throws:
java.io.IOException
-
readFrom
void readFrom(java.io.DataInput in) throws java.io.IOException, java.lang.ClassNotFoundException
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
-