public interface StreamTransportFactory
Modifier and Type | Method and Description |
---|---|
String |
getDigest() |
int |
getMaximumMessageSize() |
Future<?> |
initiateTransport(Stream stream,
com.levigo.jadice.server.shared.transport.internal.TransportSender transport)
Create a transport for the given InputStream.
|
void |
setDigest(String digest)
Set an (optional) digest for integrity of transported streams
|
void |
setMaximumMessageSize(int msgSize)
If the stream must be split in several messages, this value limits the maximum size of the
individual messages.
|
void |
shutdown()
Shut down the stream transport factory.
|
void |
startup()
Initialize the stream transport factory.
|
Future<?> initiateTransport(Stream stream, com.levigo.jadice.server.shared.transport.internal.TransportSender transport) throws StreamTransportException, com.levigo.jadice.server.shared.transport.internal.TransportAbortedException
stream
- the Stream
to transporttransport
- a TransportSender which can be used by the transportStreamTransportException
com.levigo.jadice.server.shared.transport.internal.TransportAbortedException
void startup() throws StreamTransportException
StreamTransportException
void shutdown() throws StreamTransportException
StreamTransportException
void setDigest(String digest) throws NoSuchAlgorithmException
digest
- Name of the digest algorithm (or null
to disable feature)NoSuchAlgorithmException
- If no digest with the given name was foundString getDigest()
null
if no checking is enabled)void setMaximumMessageSize(int msgSize)
msgSize
- max. size of a message (in bytes)int getMaximumMessageSize()
Copyright © 2017 levigo holding gmbh. All rights reserved.