Package io.aeron.command
Class StaticCounterFlyweight
java.lang.Object
io.aeron.command.StaticCounterFlyweight
Message to denote a response to a create static counter request.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Get the correlation id field.correlationId
(long correlationId) Set the correlation id field.int
The counter id.counterId
(int counterId) Set counter id fieldtoString()
final StaticCounterFlyweight
wrap
(MutableDirectBuffer buffer, int offset) Wrap the buffer at a given offset for updates.
-
Field Details
-
LENGTH
public static final int LENGTHLength of the header.- See Also:
-
-
Constructor Details
-
StaticCounterFlyweight
public StaticCounterFlyweight()
-
-
Method Details
-
wrap
Wrap the buffer at a given offset for updates.- Parameters:
buffer
- to wrapoffset
- at which the message begins.- Returns:
- this for a fluent API.
-
correlationId
public long correlationId()Get the correlation id field.- Returns:
- correlation id field.
-
correlationId
Set the correlation id field.- Parameters:
correlationId
- field value.- Returns:
- this for a fluent API.
-
counterId
public int counterId()The counter id.- Returns:
- counter id.
-
counterId
Set counter id field- Parameters:
counterId
- field value- Returns:
- this for a fluent API.
-
toString
-