Пример #1
0
 /** Creates a counter context with a single global, 2.1+ shard (a result of increment). */
 public ByteBuffer createGlobal(CounterId id, long clock, long count) {
   ContextState state = ContextState.allocate(1, 0, 0);
   state.writeGlobal(id, clock, count);
   return state.context;
 }