@ SuppressWarnings ( "unchecked" ) @ Nullable public static < T > QueueSubscription < T > as ( Subscription s ) { if ( s instanceof QueueSubscription ) { return ( QueueSubscription < T > ) s ; } return null ; }
Returns the subscription as QueueSubscription if possible or null .