public interface ClientConnectionChannel extends OutgoingConnectionChannel
Title: Service Event Fabric Core
Description: Extends the ConnectionChannel
defining a client (outgoing) channel.
Copyright: Copyright (c) 2009
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
void |
publish(byte[] packet)
Sends the specified packet in the 'publish-subscribe asynchronous' mode.
|
byte[] |
publishRequest(byte[] packet)
Sends the specified packet the in the 'publish-subscribe synchronous' mode.
|
void |
send(byte[] packet)
Sends the specified packet in the 'peer-to-peer asynchronous' mode.
|
void |
sendReply(long requestId,
boolean status,
java.nio.ByteBuffer packet)
Sends the specified packet as reply on a request with the specified id.
|
byte[] |
sendRequest(byte[] packet,
long timeout)
Sends the specified packet in the 'peer-to-peer synchronous' mode.
|
getChannelType, getSocketConfiguration, getStreamingThreshold, getWriterBufferSize, getWriterFlushDelay, setStreamingThreshold, setWriterBufferSize, setWriterFlushDelay
close, getLocalAddress, getRemoteAddress, isOpened, open
clone
void send(byte[] packet) throws FabricException
packet
- the packet to be sent.FabricException
- if some error occurs during a sending.byte[] sendRequest(byte[] packet, long timeout) throws FabricException, java.util.concurrent.TimeoutException
packet
- the packet to be sent.timeout
- the waiting time for reply (in milliseconds).FabricException
- if some error occurs during a sending.java.util.concurrent.TimeoutException
- if the specified waiting time has expired.void publish(byte[] packet) throws FabricException
packet
- the packet to be sent.FabricException
- if some error occurs during a sending.byte[] publishRequest(byte[] packet) throws FabricException
packet
- the packet to be sent.null if the packet handling is completed successfully, non-null
reply if some error occurs during a handling.
FabricException
- if some error occurs during a sending.void sendReply(long requestId, boolean status, java.nio.ByteBuffer packet) throws FabricException
requestId
- the id of the replied request.status
- the flag indicating if the request was processed successfully.packet
- the packet to be sent.FabricException
- if some error occurs during a sending.Copyright © 2015-2024 StreamScape Technologies. All rights reserved.