jdk.jfr.events.SocketWriteEvent where the metadata for the event is
provided with annotations. Some of the methods are replaced by generated
methods when jfr is enabled. Note that the order of the arguments of the
commit(long, long, String, String, int, long) method
must be the same as the order of the fields.
| Modifier and Type | Field and Description |
|---|---|
| public String | |
| public long | |
| public String | |
| public int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | commit(long
timestamp of the start of the operation start, long time in nanoseconds to complete the operation duration, String remote host of the transfer host, String remote address of the transfer address, int remote port of the transfer port, long number of bytes that were transferred bytes)Actually commit a socket write event. |
| public static void | emit(long
the start time start, long the duration duration, long how many bytes were sent bytesWritten, SocketAddress the address of the remote socket being written to remote)Helper method to perform a common task of getting event data ready and
then emitting the event by calling
|
| public static boolean | Returns: true if socket write events are enabled, false otherwiseDetermine if this kind of event is enabled. |
| public static void | offer(long
the start time start, long how many bytes were sent bytesWritten, SocketAddress the address of the remote socket being written to remote)Helper method to offer the data needed to potentially commit an event. |
| public static boolean | Returns: true if the event should be commitedtime to complete the operation duration, long timestamp at the end of the operation end)Determine if an event should be emitted. |
| public static long |
| address | back to summary |
|---|---|
| public String address | |
| bytesWritten | back to summary |
|---|---|
| public long bytesWritten | |
| host | back to summary |
|---|---|
| public String host | |
| port | back to summary |
|---|---|
| public int port | |
| SocketWriteEvent | back to summary |
|---|---|
| public SocketWriteEvent() | |
| commit | back to summary |
|---|---|
| public static void commit(long start, long duration, String host, String address, int port, long bytes) Actually commit a socket write event. This is generated automatically.
The order of the fields must be the same as the parameters in this method.
| |
| emit | back to summary |
|---|---|
| public static void emit(long start, long duration, long bytesWritten, SocketAddress remote) Helper method to perform a common task of getting event data ready and
then emitting the event by calling
| |
| enabled | back to summary |
|---|---|
| public static boolean enabled() Determine if this kind of event is enabled. The implementation of this method is generated automatically if jfr is enabled.
| |
| offer | back to summary |
|---|---|
| public static void offer(long start, long bytesWritten, SocketAddress remote) Helper method to offer the data needed to potentially commit an event.
The duration of the operation is computed using the current
timestamp and the given start time. If the duration is meets
or exceeds the configured value (determined by calling the generated method
| |
| shouldThrottleCommit | back to summary |
|---|---|
| public static boolean shouldThrottleCommit(long duration, long end) Determine if an event should be emitted. The duration of the operation must exceed some threshold in order to commit the event. The implementation of this method is generated automatically if jfr is enabled.
| |
| timestamp | back to summary |
|---|---|
| public static long timestamp() Fetch the current timestamp in nanoseconds. This method is used to determine the start and end of an operation. The implementation of this method is generated automatically if jfr is enabled.
| |