@Override public int hashCode() { return getId().hashCode(); }
/** * Stores this notification channel in the given notification channel data store. * * <p> * It is important that this method be called before the watch HTTP request is made in case the * notification is received before the watch HTTP response is received. * </p> * * @param dataStore notification channel data store */ public StoredChannel store(DataStore<StoredChannel> dataStore) throws IOException { lock.lock(); try { dataStore.set(getId(), this); return this; } finally { lock.unlock(); } }
@Override public String toString() { return Objects.toStringHelper(StoredChannel.class) .add("notificationCallback", getNotificationCallback()).add("clientToken", getClientToken()) .add("expiration", getExpiration()).add("id", getId()).add("topicId", getTopicId()) .toString(); }