-
- All Implemented Interfaces:
public final class IppSubscription
-
-
Field Summary
Fields Modifier and Type Field Description private final Integeridprivate final DurationleaseDurationprivate final List<String>eventsprivate final IntegerjobIdprivate final IppStringsubscriberUserNameprivate final DurationtimeIntervalprivate BooleanpollHandlesNotificationsprivate final LocalDateTimeexpiresAtprivate final IppPrinterprinterprivate final IppAttributesGroupattributes
-
Constructor Summary
Constructors Constructor Description IppSubscription(IppPrinter printer, IppAttributesGroup attributes, Boolean startLease)
-
Method Summary
-
-
Constructor Detail
-
IppSubscription
IppSubscription(IppPrinter printer, IppAttributesGroup attributes, Boolean startLease)
-
-
Method Detail
-
getLeaseDuration
final Duration getLeaseDuration()
-
getSubscriberUserName
final IppString getSubscriberUserName()
-
getTimeInterval
final Duration getTimeInterval()
-
getPollHandlesNotifications
final Boolean getPollHandlesNotifications()
-
setPollHandlesNotifications
final Unit setPollHandlesNotifications(Boolean pollHandlesNotifications)
-
getExpiresAt
final LocalDateTime getExpiresAt()
-
getPrinter
final IppPrinter getPrinter()
-
getAttributes
final IppAttributesGroup getAttributes()
-
getSubscriptionAttributes
@JvmOverloads() final IppResponse getSubscriptionAttributes(Collection<String> requestedAttributes)
-
getSubscriptionAttributes
@JvmOverloads() final IppResponse getSubscriptionAttributes()
-
updateAttributes
final Unit updateAttributes()
-
getNotifications
@JvmOverloads() final List<IppEventNotification> getNotifications(Integer notifySequenceNumber)
-
getNotifications
@JvmOverloads() final List<IppEventNotification> getNotifications()
-
cancel
final IppResponse cancel()
-
renew
@JvmOverloads() final IppResponse renew(Duration leaseDuration)
-
renew
@JvmOverloads() final IppResponse renew()
-
expiryAvailable
final Boolean expiryAvailable()
-
pollAndHandleNotifications
@JvmOverloads() final Unit pollAndHandleNotifications(Duration pollEvery, Boolean autoRenewSubscription, Function1<IppEventNotification, Unit> handleNotification)
-
pollAndHandleNotifications
@JvmOverloads() final Unit pollAndHandleNotifications(Duration pollEvery, Boolean autoRenewSubscription)
-
pollAndHandleNotifications
@JvmOverloads() final Unit pollAndHandleNotifications(Duration pollEvery)
-
pollAndHandleNotifications
@JvmOverloads() final Unit pollAndHandleNotifications()
-
log
@JvmOverloads() final Unit log(Logger logger, Level level)
-
log
@JvmOverloads() final Unit log(Logger logger)
-
-
-
-