public static IMessageSession acceptSessionFromEntityPath(String namespaceName, String entityPath, String sessionId, ClientSettings clientSettings) throws InterruptedException, ServiceBusException {
        return Utils.completeFuture(acceptSessionFromEntityPathAsync(namespaceName, entityPath, sessionId, clientSettings));
    }
public static IMessageSession acceptSessionFromEntityPath ( String namespaceName , String entityPath , String sessionId , ClientSettings clientSettings ) throws InterruptedException , ServiceBusException { return Utils . completeFuture ( acceptSessionFromEntityPathAsync ( namespaceName , entityPath , sessionId , clientSettings ) ) ; }
Accept a {@link IMessageSession} from service bus using the client settings with specified session id in PeekLock mode. Session Id can be null, if null, service will return the first available session.
@param namespaceName namespace of entity
@param entityPath path of entity
@param sessionId session id, if null, service will return the first available session, otherwise, service will return specified session
@param clientSettings client settings
@return IMessageSession instance
@throws InterruptedException if the current thread was interrupted while waiting
@throws ServiceBusException if the session cannot be accepted