congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Registration.getExpirationTimeStamp
Code IndexAdd Tabnine to your IDE (free)

How to use
getExpirationTimeStamp
method
in
org.eclipse.leshan.server.registration.Registration

Best Java code snippets using org.eclipse.leshan.server.registration.Registration.getExpirationTimeStamp (Showing top 4 results out of 315)

origin: eclipse/leshan

public long getExpirationTimeStamp() {
  return getExpirationTimeStamp(0L);
}
origin: eclipse/leshan

/**
 * This is the same idea than {@link Registration#isAlive()} but with a grace period. <br/>
 * 
 * @return true if the last registration update was done less than lifetime+gracePeriod seconds ago.
 */
public boolean isAlive(long gracePeriodInSec) {
  return getExpirationTimeStamp(gracePeriodInSec) > System.currentTimeMillis();
}
origin: eclipse/leshan

private void addOrUpdateExpiration(Jedis j, Registration registration) {
  j.zadd(EXP_EP, registration.getExpirationTimeStamp(gracePeriod), registration.getEndpoint().getBytes(UTF_8));
}
origin: org.eclipse.leshan/leshan-server-cluster

private void addOrUpdateExpiration(Jedis j, Registration registration) {
  j.zadd(EXP_EP, registration.getExpirationTimeStamp(gracePeriod), registration.getEndpoint().getBytes(UTF_8));
}
org.eclipse.leshan.server.registrationRegistrationgetExpirationTimeStamp

Popular methods of Registration

  • getEndpoint
  • getId
  • getIdentity
  • getAdditionalRegistrationAttributes
  • getBindingMode
  • getLifeTimeInSec
  • getLwM2mVersion
  • getRegistrationDate
  • getRegistrationEndpointAddress
  • getRootPath
  • getSmsNumber
  • isAlive
  • getSmsNumber,
  • isAlive,
  • usesQueueMode,
  • getLastUpdate,
  • getObjectLinks,
  • getSocketAddress,
  • <init>,
  • getAddress,
  • getPort

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now