private EhcacheEntityResponse invokeInternalAndWait(InvocationBuilder<EhcacheEntityMessage, EhcacheEntityResponse> invocationBuilder, EhcacheOperationMessage message, boolean track) throws ClusterException, TimeoutException { return invokeInternalAndWait(invocationBuilder, getTimeoutDuration(message), message, track); }
@Override public void invokeAndWaitForReceive(EhcacheOperationMessage message, boolean track) throws ClusterException, TimeoutException { invokeInternalAndWait(endpoint.beginInvoke().ackReceived(), message, track); }
@Override public EhcacheEntityResponse invokeAndWaitForRetired(EhcacheOperationMessage message, boolean track) throws ClusterException, TimeoutException { return invokeInternalAndWait(endpoint.beginInvoke().blockGetOnRetire(true), message, track); }
@Override public EhcacheEntityResponse invokeAndWaitForComplete(EhcacheOperationMessage message, boolean track) throws ClusterException, TimeoutException { return invokeInternalAndWait(endpoint.beginInvoke().blockGetOnRetire(false), message, track); }
@Override public void validate(ServerStoreConfiguration clientStoreConfiguration) throws ClusterTierException, TimeoutException { try { invokeInternalAndWait(endpoint.beginInvoke(), timeouts.getConnectionTimeout(), messageFactory.validateServerStore(storeIdentifier , clientStoreConfiguration), false); } catch (ClusterException e) { throw new ClusterTierValidationException("Error validating cluster tier '" + storeIdentifier + "'", e); } }
private EhcacheEntityResponse invokeInternalAndWait(InvocationBuilder<EhcacheEntityMessage, EhcacheEntityResponse> invocationBuilder, EhcacheOperationMessage message, boolean track) throws ClusterException, TimeoutException { return invokeInternalAndWait(invocationBuilder, getTimeoutDuration(message), message, track); }
@Override public void invokeAndWaitForReceive(EhcacheOperationMessage message, boolean track) throws ClusterException, TimeoutException { invokeInternalAndWait(endpoint.beginInvoke().ackReceived(), message, track); }
@Override public EhcacheEntityResponse invokeAndWaitForRetired(EhcacheOperationMessage message, boolean track) throws ClusterException, TimeoutException { return invokeInternalAndWait(endpoint.beginInvoke().blockGetOnRetire(true), message, track); }
@Override public EhcacheEntityResponse invokeAndWaitForComplete(EhcacheOperationMessage message, boolean track) throws ClusterException, TimeoutException { return invokeInternalAndWait(endpoint.beginInvoke().blockGetOnRetire(false), message, track); }
@Override public void validate(ServerStoreConfiguration clientStoreConfiguration) throws ClusterTierException, TimeoutException { try { invokeInternalAndWait(endpoint.beginInvoke(), timeouts.getConnectionTimeout(), messageFactory.validateServerStore(storeIdentifier , clientStoreConfiguration), false); } catch (ClusterException e) { throw new ClusterTierValidationException("Error validating cluster tier '" + storeIdentifier + "'", e); } }