Java 类com.amazonaws.services.sns.model.UnsubscribeResult 实例源码

项目:awslocal    文件:InMemorySNS.java   
@Override
public UnsubscribeResult unsubscribe(UnsubscribeRequest unsubscribeRequest) throws AmazonClientException {
    if (!_subscriptionsByArn.containsKey(unsubscribeRequest.getSubscriptionArn()))
        throw new NotFoundException("no such subscription");
    Subscription removed = _subscriptionsByArn.remove(unsubscribeRequest.getSubscriptionArn());
    _subscriptionsForTopic.get(removed.getSubscriptionArn()).remove(removed.getSubscriptionArn());
    return new UnsubscribeResult();
}
项目:Camel    文件:AmazonSNSClientMock.java   
@Override
public UnsubscribeResult unsubscribe(UnsubscribeRequest unsubscribeRequest) throws AmazonServiceException, AmazonClientException {
    throw new UnsupportedOperationException();
}