void reset ( OperationEntry < ? > entry , ServerSessionContext session , long timestamp ) { if ( references . compareAndSet ( 0 , 1 ) ) { this . index = entry . getIndex ( ) ; this . session = session ; this . instant = Instant . ofEpochMilli ( timestamp ) ; this . operation = entry . getOperation ( ) ; session . acquire ( ) ; references . set ( 1 ) ; } else { throw new IllegalStateException ( "Cannot recycle commit with " + references . get ( ) + " references" ) ; } }
Resets the commit .