/** Commit the fragment so that it can be read by subscriptions. */ public void commit() { // commit the message by writing the positive framed length buffer.putIntOrdered(lengthOffset(0), buffer.capacity()); onCompleteHandler.run(); reset(); }
/** Commit the fragment so that it can be read by subscriptions. */ public void commit() { // commit the message by writing the positive framed length buffer.putIntOrdered(lengthOffset(0), buffer.capacity()); onCompleteHandler.run(); reset(); }
/** Commit the fragment and mark it as failed. It will be ignored by subscriptions. */ public void abort() { // abort the message by setting type to padding and writing the positive framed length buffer.putInt(typeOffset(0), TYPE_PADDING); buffer.putIntOrdered(lengthOffset(0), buffer.capacity()); onCompleteHandler.run(); reset(); }
/** Commit the fragment and mark it as failed. It will be ignored by subscriptions. */ public void abort() { // abort the message by setting type to padding and writing the positive framed length buffer.putInt(typeOffset(0), TYPE_PADDING); buffer.putIntOrdered(lengthOffset(0), buffer.capacity()); onCompleteHandler.run(); reset(); }