This class may be removed in the future. Consider the replacements in JEP 193 'Variable Handles': http://openjdk.java.net/jeps/193
/** * Create a sequence with a specified initial value. * * @param initialValue The initial value for this sequence. */ public Sequence(final long initialValue) { UNSAFE.putOrderedLong(this, VALUE_OFFSET, initialValue); }
/** * Perform an ordered write of this sequence. The intent is * a Store/Store barrier between this write and any previous * store. * * @param value The new value for the sequence. */ public void set(final long value) { UNSAFE.putOrderedLong(this, VALUE_OFFSET, value); }
void lazySetReadCounter(long count) { UnsafeAccess.UNSAFE.putOrderedLong(this, READ_OFFSET, count); } }
public void onFragment(final DirectBuffer buffer, final int offset, final int length, final Header header) { UNSAFE.putOrderedLong(this, TOTAL_BYTES_OFFSET, totalBytes + length); } }
public void onFragment(final DirectBuffer buffer, final int offset, final int length, final Header header) { UNSAFE.putOrderedLong(this, TOTAL_BYTES_OFFSET, totalBytes + length); } }
public void onFragment(final DirectBuffer buffer, final int offset, final int length, final Header header) { UNSAFE.putOrderedLong(this, TOTAL_BYTES_OFFSET, totalBytes + length); } }
public void onFragment(final DirectBuffer buffer, final int offset, final int length, final Header header) { UNSAFE.putOrderedLong(this, TOTAL_BYTES_OFFSET, totalBytes + length); } }
public void onFragment(final DirectBuffer buffer, final int offset, final int length, final Header header) { UNSAFE.putOrderedLong(this, TOTAL_BYTES_OFFSET, totalBytes + length); } }
private void soProducerLimit(long v) { UNSAFE.putOrderedLong(this, P_LIMIT_OFFSET, v); }
ReadAndWriteCounterRef() { UnsafeAccess.UNSAFE.putOrderedLong(this, WRITE_OFFSET, OFFSET); }
private void soProducerIndex(long v) { UNSAFE.putOrderedLong(this, P_INDEX_OFFSET, v); }
private void soConsumerIndex(long v) { UNSAFE.putOrderedLong(this, C_INDEX_OFFSET, v); }
/** * Create a sequence with a specified initial value. * * @param initialValue The initial value for this sequence. */ UnsafeSequence(final long initialValue) { UNSAFE.putOrderedLong(this, VALUE_OFFSET, initialValue); }
@Override public void set(final long value) { UNSAFE.putOrderedLong(this, VALUE_OFFSET, value); }
void lazySetReadCache(long count) { UnsafeAccess.UNSAFE.putOrderedLong(this, READ_CACHE_OFFSET, count); } }
void lazySetReadCounter(long count) { UnsafeAccess.UNSAFE.putOrderedLong(this, READ_OFFSET, count); } }
void lazySetReadCounter(long count) { UnsafeAccess.UNSAFE.putOrderedLong(this, READ_OFFSET, count); } }
void lazySetReadCounter(long count) { UnsafeAccess.UNSAFE.putOrderedLong(this, READ_OFFSET, count); } }
private void putRawTailOrdered(final int termId, final int termOffset) { UnsafeAccess.UNSAFE.putOrderedLong(null, tailAddressOffset, packTail(termId, termOffset)); } }
void setRelaxedLong(long value) { UnsafeAccess.UNSAFE.putOrderedLong(this, RelaxedFields.LVALUE_OFFSET, value); }