public class ClaimedFragment extends Object
Reusable but not threadsafe.
| Modifier and Type | Field and Description |
|---|---|
protected org.agrona.concurrent.UnsafeBuffer |
buffer |
| Constructor and Description |
|---|
ClaimedFragment() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Commit the fragment and mark it as failed.
|
void |
commit()
Commit the fragment so that it can be read by subscriptions.
|
org.agrona.MutableDirectBuffer |
getBuffer()
Returns the claimed fragment to write in.
|
int |
getFragmentLength() |
int |
getLength() |
int |
getOffset() |
boolean |
isOpen() |
void |
wrap(org.agrona.concurrent.UnsafeBuffer underlyingbuffer,
int fragmentOffset,
int fragmentLength,
Runnable onCompleteHandler) |
public void wrap(org.agrona.concurrent.UnsafeBuffer underlyingbuffer,
int fragmentOffset,
int fragmentLength,
Runnable onCompleteHandler)
public int getOffset()
public int getLength()
public int getFragmentLength()
public org.agrona.MutableDirectBuffer getBuffer()
public void commit()
public void abort()
public boolean isOpen()
Copyright © 2017–2018 camunda services GmbH. All rights reserved.