Пример #1
0
 public int read(MessageHandler handler) {
   return ringBuffer.read(handler);
 }
Пример #2
0
 @Override
 public void onMessage(int msgTypeId, MutableDirectBuffer buffer, int index, int length) {
   while (!inputRingBuffer.write(msgTypeId, buffer, index, length)) {
     idleStrategy.idle(0);
   }
 }