-
- All Implemented Interfaces:
public final class IppSubscription
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classIppSubscription.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Integeridprivate final DurationleaseDurationprivate final List<String>eventsprivate final IntegerjobIdprivate final IppStringsubscriberUserNameprivate BooleanhandleNotificationsprivate final LocalDateTimeexpiresAtprivate final IppPrinterprinterprivate IppAttributesGroupattributes
-
Constructor Summary
Constructors Constructor Description IppSubscription(IppPrinter printer, IppAttributesGroup attributes)
-
Method Summary
-
-
Constructor Detail
-
IppSubscription
IppSubscription(IppPrinter printer, IppAttributesGroup attributes)
-
-
Method Detail
-
getLeaseDuration
final Duration getLeaseDuration()
-
getSubscriberUserName
final IppString getSubscriberUserName()
-
getHandleNotifications
final Boolean getHandleNotifications()
-
setHandleNotifications
final Unit setHandleNotifications(Boolean handleNotifications)
-
getExpiresAt
final LocalDateTime getExpiresAt()
-
getPrinter
final IppPrinter getPrinter()
-
getAttributes
final IppAttributesGroup getAttributes()
-
setAttributes
final Unit setAttributes(IppAttributesGroup attributes)
-
getSubscriptionAttributes
@JvmOverloads() final IppResponse getSubscriptionAttributes(List<String> requestedAttributes)
-
getSubscriptionAttributes
@JvmOverloads() final IppResponse getSubscriptionAttributes()
-
updateAllAttributes
final Unit updateAllAttributes()
-
getNotifications
final List<IppEventNotification> getNotifications(Boolean onlyNewEvents, Integer notifySequenceNumber)
-
cancel
final IppResponse cancel()
-
renew
final IppResponse renew(Duration leaseDuration)
-
ippRequest
final IppRequest ippRequest(IppOperation operation, List<String> requestedAttributes)
-
exchange
final IppResponse exchange(IppRequest request)
-
getAndHandleNotifications
final Unit getAndHandleNotifications(Duration delay, Boolean autoRenewSubscription, Function1<IppEventNotification, Unit> handleNotification)
-
logDetails
final Unit logDetails()
-
-
-
-