public interface PacketHandler
Title: Service Event Fabric Runtime
Description: Provides facilities for a handling of network packets.
Copyright: Copyright (c) 2009
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
void |
onPacket(byte[] packet)
Handles a packet received in the 'peer-to-peer asynchronous' mode.
|
void |
onPublication(byte[] packet)
Handles a packet received in the 'publish-subscribe asynchronous' mode.
|
byte[] |
onPublicationRequest(byte[] packet)
Handles a packet received in the 'publish-subscribe synchronous' mode.
|
java.nio.ByteBuffer |
onRequest(long requestId,
byte[] packet,
long timeout)
Handles a packet received in the 'peer-to-peer synchronous' mode.
|
void onPacket(byte[] packet)
packet
- the received packet.java.nio.ByteBuffer onRequest(long requestId, byte[] packet, long timeout) throws FabricException
requestId
- the request identifier.packet
- the received packet.timeout
- the waiting time for reply (in milliseconds).null
if the timeout expired.FabricException
- if some error occurs during a handling.void onPublication(byte[] packet)
packet
- the received packet.byte[] onPublicationRequest(byte[] packet) throws FabricException
packet
- the received packet.null if the handling is completed successfully, non-null
reply if some error occurs during the handling.
FabricException
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.