Package org.jgroups.util
Interface Streamable
-
- All Known Subinterfaces:
Address,COUNTER.Request,COUNTER.Response,PhysicalAddress,SiteAddress,SizeStreamable
- All Known Implementing Classes:
ABP.ABPHeader,AnycastAddress,AuthHeader,AuthToken,Average,AverageMinMax,COMPRESS.CompressHeader,COUNTER.AddAndGetRequest,COUNTER.BooleanResponse,COUNTER.CompareAndSetRequest,COUNTER.CounterHeader,COUNTER.DeleteRequest,COUNTER.ExceptionResponse,COUNTER.GetOrCreateRequest,COUNTER.GetOrCreateResponse,COUNTER.ReconcileRequest,COUNTER.ReconcileResponse,COUNTER.ResendPendingRequests,COUNTER.SetRequest,COUNTER.SimpleRequest,COUNTER.SimpleResponse,COUNTER.UpdateRequest,COUNTER.ValueResponse,DAISYCHAIN.DaisyHeader,DeltaView,DH_KEY_EXCHANGE.DhHeader,Digest,DrawCommand,EncryptHeader,EXAMPLE.ExampleHeader,Executing.ExecutorHeader,Executing.Request,Executing.RequestWithThread,Executions.StreamableCallable,ExecutionService.RunnableAdapter,ExecutionServiceDemo.ByteBufferStreamable,ExecutionServiceDemo.SortingByteCallable,ExecutionServiceDemo.SortingTwoByteCallable,ExtendedUUID,FailureDetection.HeartbeatHeader,FcHeader,FD_SOCK.FdHeader,FD.FdHeader,FixedMembershipToken,FlagsUUID,FLUSH.FlushHeader,FORK.ForkHeader,FORWARD_TO_COORD.ForwardHeader,Frag3Header,FragHeader,GMS.GmsHeader,GossipData,GridFile.Metadata,Header,IpAddress,IpAddressUUID,JoinRsp,Krb5Token,Locking.LockInfoResponse,Locking.LockingHeader,Locking.Request,MD5Token,MERGE3.MergeHeader,MergeId,MergeView,Message,MessageID,MethodCall,MutableDigest,NakAckHeader2,NAMING.Header,Owner,PDC.Mapping,PERF.PerfHeader,PingData,PingHeader,Range,RegexMembership,RELAY.RelayHeader,RELAY.ViewData,RELAY2.Relay2Header,RequestCorrelator.Header,RequestCorrelator.MultiDestinationHeader,RSVP.RsvpHeader,SaslHeader,SeqnoList,SEQUENCER.SequencerHeader,SEQUENCER2.SequencerHeader,SimpleToken,SiteMaster,SiteUUID,STABLE.StableHeader,STATE_TRANSFER.StateHeader,STOMP.StompHeader,StreamingStateTransfer.StateHeader,ToaHeader,TpHeader,UnicastHeader3,UUID,VERIFY_SUSPECT.VerifyHeader,View,ViewId,X509Token
public interface StreamableImplementations 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 voidreadFrom(java.io.DataInput in)Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedvoidwriteTo(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.IOExceptionWrite 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.ClassNotFoundExceptionRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
-