public void setAutoRemoved ( boolean autoRemove ) { if ( ! autoRemove ) { if ( getMetadata ( ) == null ) { setMetadata ( new HashMap < String , String > ( ) ) ; } getMetadata ( ) . put ( "autoRemoved" , "false" ) ; } }
set auto removed to false which will set a metadata to let the instance will not be removed automatically if max living time is exceeed on the server side . The default setting always true to allow auto - removing ..