void function ( final Token arg0 ) { checkIsRedeemable ( arg0 ) ; tokenRepository . delete ( arg0 ) ; if ( LOGGER . isDebugEnabled ( ) ) LOGGER . debug ( "srini_string" + arg0 . getTokenNumber ( ) ) ; }
checks whether a token can be redeemed and then redeems it i.e. removes it from the database . if the token does not exist or has expired , it throws an exception . concode_field_sep long DEFAULT_ALLOWED_TOKEN_AGE_SECS concode_elem_sep CityService cityService concode_elem_sep Logger LOGGER concode_elem_sep TokenRepository tokenRepository concode_field_sep Token checkIsRedeemable concode_elem_sep Token checkIsRedeemable concode_elem_sep Token findByTokenNumberandService concode_elem_sep Token findByTokenNumber concode_elem_sep Token createToken concode_elem_sep Token generate concode_elem_sep Token generate concode_elem_sep Token generate concode_elem_sep Token generate concode_elem_sep Token generate