Package akka.remote.artery
Class LoggingRemoteInstrument
- java.lang.Object
-
- akka.remote.artery.RemoteInstrument
-
- akka.remote.artery.LoggingRemoteInstrument
-
public class LoggingRemoteInstrument extends RemoteInstrument
INTERNAL API
-
-
Constructor Summary
Constructors Constructor Description LoggingRemoteInstrument(ActorSystem system)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
identifier()
Instrument identifier.void
remoteMessageReceived(ActorRef recipient, java.lang.Object message, ActorRef sender, int size, long time)
Called when the message has been deserialized.void
remoteMessageSent(ActorRef recipient, java.lang.Object message, ActorRef sender, int size, long time)
Called right before putting the message onto the wire.void
remoteReadMetadata(ActorRef recipient, java.lang.Object message, ActorRef sender, java.nio.ByteBuffer buffer)
Called while deserializing the message once a message (containing a metadata field designated for this instrument) is found.void
remoteWriteMetadata(ActorRef recipient, java.lang.Object message, ActorRef sender, java.nio.ByteBuffer buffer)
Called while serializing the message.-
Methods inherited from class akka.remote.artery.RemoteInstrument
serializationTimingEnabled
-
-
-
-
Constructor Detail
-
LoggingRemoteInstrument
public LoggingRemoteInstrument(ActorSystem system)
-
-
Method Detail
-
identifier
public byte identifier()
Description copied from class:RemoteInstrument
Instrument identifier.MUST be >=1 and <32.
Values between 1 and 7 are reserved for Akka internal use.
- Specified by:
identifier
in classRemoteInstrument
-
remoteMessageReceived
public void remoteMessageReceived(ActorRef recipient, java.lang.Object message, ActorRef sender, int size, long time)
Description copied from class:RemoteInstrument
Called when the message has been deserialized.The
size
is the total serialized size in bytes of the complete message including akka specific headers and anyRemoteInstrument
metadata. IfserializationTimingEnabled
returns true, thentime
will be the total time it took to deserialize all data in the message in nanoseconds, otherwise it is 0.- Specified by:
remoteMessageReceived
in classRemoteInstrument
-
remoteMessageSent
public void remoteMessageSent(ActorRef recipient, java.lang.Object message, ActorRef sender, int size, long time)
Description copied from class:RemoteInstrument
Called right before putting the message onto the wire. Parameters MAY benull
(exceptmessage
andbuffer
)!The
size
is the total serialized size in bytes of the complete message including akka specific headers and anyRemoteInstrument
metadata. IfserializationTimingEnabled
returns true, thentime
will be the total time it took to serialize all data in the message in nanoseconds, otherwise it is 0.- Specified by:
remoteMessageSent
in classRemoteInstrument
-
remoteReadMetadata
public void remoteReadMetadata(ActorRef recipient, java.lang.Object message, ActorRef sender, java.nio.ByteBuffer buffer)
Description copied from class:RemoteInstrument
Called while deserializing the message once a message (containing a metadata field designated for this instrument) is found.- Specified by:
remoteReadMetadata
in classRemoteInstrument
-
remoteWriteMetadata
public void remoteWriteMetadata(ActorRef recipient, java.lang.Object message, ActorRef sender, java.nio.ByteBuffer buffer)
Description copied from class:RemoteInstrument
Called while serializing the message. Parameters MAY benull
(exceptmessage
andbuffer
)!- Specified by:
remoteWriteMetadata
in classRemoteInstrument
-
-