public synchronized void storeConfiguration(Configuration configuration) {
    log.trace("Store configuration {}", configuration);
    byte[] bytes = serializer.encode(configuration);
    configurationBuffer.position(0)
        .writeByte(1)
        .writeInt(bytes.length)
        .write(bytes);
    configurationBuffer.flush();
  }
public synchronized void storeConfiguration ( Configuration configuration ) { log . trace ( "Store configuration {}" , configuration ) ; byte [ ] bytes = serializer . encode ( configuration ) ; configurationBuffer . position ( 0 ) . writeByte ( 1 ) . writeInt ( bytes . length ) . write ( bytes ) ; configurationBuffer . flush ( ) ; }
Stores the current cluster configuration.

@param configuration The current cluster configuration.