public static boolean isTransactionSegment ( String streamSegmentName ) { // Check to see if the given name is a properly formatted Transaction. int endOfStreamNamePos = streamSegmentName . lastIndexOf ( TRANSACTION_DELIMITER ) ; if ( endOfStreamNamePos < 0 || endOfStreamNamePos + TRANSACTION_DELIMITER . length ( ) + TRANSACTION_ID_LENGTH > streamSegmentName . length ( ) ) { return false ; } return true ; }
Checks if the given stream segment name is formatted for a Transaction Segment or regular segment .