org.jgroups.util
Interface Streamable

All Known Subinterfaces:
Address, PhysicalAddress, SiteAddress, SizeStreamable
All Known Implementing Classes:
AdditionalDataUUID, AnycastAddress, AuthHeader, AuthToken, CanBeSiteMaster, CanBeSiteMasterTopology, COMPRESS.CompressHeader, COUNTER.AddAndGetRequest, COUNTER.BooleanResponse, COUNTER.CompareAndSetRequest, COUNTER.CounterHeader, COUNTER.DeleteRequest, COUNTER.ExceptionResponse, COUNTER.GetOrCreateRequest, COUNTER.GetOrCreateResponse, COUNTER.ReconcileRequest, COUNTER.ReconcileResponse, COUNTER.Request, COUNTER.ResendPendingRequests, COUNTER.Response, COUNTER.SetRequest, COUNTER.SimpleRequest, COUNTER.SimpleResponse, COUNTER.UpdateRequest, COUNTER.ValueResponse, DAISYCHAIN.DaisyHeader, DemoToken, DemoToken.DemoHeader, Digest, DISCARD.DiscardHeader, DrawCommand, ENCRYPT.EncryptHeader, EXAMPLE.ExampleHeader, Executing.ExecutorHeader, Executing.Request, Executing.RequestWithThread, Executions.StreamableCallable, ExecutionService.RunnableAdapter, ExecutionServiceDemo.ByteBufferStreamable, ExecutionServiceDemo.SortingByteCallable, ExecutionServiceDemo.SortingTwoByteCallable, FcHeader, FD_ALL.HeartbeatHeader, FD_SIMPLE.FdHeader, FD_SOCK.FdHeader, FD.FdHeader, FixedMembershipToken, FLUSH.FlushHeader, FORWARD_TO_COORD.ForwardHeader, FragHeader, GMS.GmsHeader, GossipData, GridFile.Metadata, Header, HTOTAL.HTotalHeader, IpAddress, JoinRsp, Locking.LockingHeader, Locking.Request, MD5Token, MERGE3.MergeHeader, MergeId, MergeView, Message, MessageID, MutableDigest, MuxHeader, NakAckHeader, NakAckHeader2, Owner, PayloadUUID, PDC.Mapping, PingData, PingHeader, PrioHeader, Range, RegexMembership, RELAY.RelayHeader, RELAY.ViewData, RELAY2.Relay2Header, RequestCorrelator.Header, RequestCorrelator.MultiDestinationHeader, RSVP.RsvpHeader, SCOPE.ScopeHeader, SeqnoList, SEQUENCER.SequencerHeader, SimpleToken, SingletonAddress, SiteMaster, SiteUUID, STABLE.StableHeader, STATE_TRANSFER.StateHeader, STOMP.StompHeader, StreamingStateTransfer.StateHeader, ToaHeader, TopologyUUID, TpHeader, UNICAST.UnicastHeader, UNICAST2.Unicast2Header, UUID, VERIFY_SUSPECT.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
 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 closed
 void 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.lang.Exception
Write the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed

Throws:
java.lang.Exception

readFrom

void readFrom(java.io.DataInput in)
              throws java.lang.Exception
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed

Throws:
java.lang.Exception


Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.