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.Response,COUNTER.SetRequest,COUNTER.SimpleRequest,COUNTER.UpdateFunctionRequest,COUNTER.UpdateFunctionResponse,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,FLUSH.FlushHeader,FORK.ForkHeader,Frag3Header,FragHeader,FragmentedMessage,GMS.GmsHeader,GossipData,GridFile.Metadata,Header,IpAddress,JoinRsp,Krb5Token,Locking.LockInfoResponse,Locking.LockingHeader,Locking.Request,LongMessage,LongSizeStreamable,MERGE3.MergeHeader,MergeId,MergeView,MessageSendTest.MyData,MessageSendTest.MyHeader,MessageSendTest.MySizeData,MethodCall,MillisAddress,MPerf.ConfigChange,MPerf.Configuration,MPerf.MPerfHeader,MPerf.Result,MPerfRpc.ConfigChange,MPerfRpc.Configuration,MPerfRpc.Result,MutableDigest,NakAckHeader2,NioMessage,NullAddress,ObjectMessage,ObjectWrapperPrimitive,ObjectWrapperSerializable,Owner,PDC.Mapping,PERF.PerfHeader,PerfUtil.Config,PerfUtil.CustomCall,PerfUtil.GetCall,PerfUtil.PutCall,PerfUtil.Results,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,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
-
Method Summary
Modifier and TypeMethodDescriptionvoidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedvoidwriteTo(DataOutput out) Write the entire state of the current object (including superclasses) to outstream.
-
Method Details
-
writeTo
Write the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Throws:
IOException
-
readFrom
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Throws:
IOExceptionClassNotFoundException
-