com.healthmarketscience.rmiio.socket
Class RMISocket.Source
java.lang.Object
com.healthmarketscience.rmiio.socket.RMISocket.Source
- All Implemented Interfaces:
- RemoteClient, Closeable, Serializable
- Enclosing class:
- RMISocket
public static class RMISocket.Source
- extends Object
- implements Serializable, RemoteClient, Closeable
Serializable stub which must be passed to the remote system in order to
enable it to send data through this socket.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Throws:
IOException
setRemoteRetry
public void setRemoteRetry(RemoteRetry retry)
- Description copied from interface:
RemoteClient
- Sets the client side RemoteRetry policy to use for the underlying remote
communication layer. For most client side implementations, this method
must be called before any other calls on this client object (any calls to
this method after one of those methods is called will have no affect).
- Specified by:
setRemoteRetry
in interface RemoteClient
- Parameters:
retry
- the new RemoteRetry policy to use for remote
communication. null
causes the
RemoteClient.DEFAULT_RETRY
policy to be used.
setChunkSize
public void setChunkSize(Integer chunkSize)
- May be called on the client-side in order to set the target chunk size
used by the underlying implementation. Must be called prior to
the first call to
getOutputStream()
, as once the underlying
stream is initialized, the chunk size cannot be changed.
- Parameters:
chunkSize
- target value for the byte size of the packets of data
sent over the wire. note that this is a suggestion,
actual packet sizes may vary. if null
,
RemoteOutputStreamClient.DEFAULT_CHUNK_SIZE
will be used.
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Throws:
IOException
Copyright © 2006–2016 Health Market Science. All rights reserved.