Tabnine Logo
IterableWithMarker.nextMarker
Code IndexAdd Tabnine to your IDE (free)

How to use
nextMarker
method
in
org.jclouds.collect.IterableWithMarker

Best Java code snippets using org.jclouds.collect.IterableWithMarker.nextMarker (Showing top 20 results out of 315)

origin: io.cloudsoft.jclouds/jclouds-core

@Override
protected IterableWithMarker<T> computeNext() {
  if (unread)
   try {
     return current;
   } finally {
     unread = false;
   }
  else if (current.nextMarker().isPresent())
   return current = markerToNext.apply(current.nextMarker().get());
  else
   return endOfData();
}
origin: org.jclouds/jclouds-core

@Override
protected IterableWithMarker<T> computeNext() {
  if (unread)
   try {
     return current;
   } finally {
     unread = false;
   }
  else if (current.nextMarker().isPresent())
   return current = markerToNext.apply(current.nextMarker().get());
  else
   return endOfData();
}
origin: jclouds/legacy-jclouds

@Override
protected IterableWithMarker<T> computeNext() {
  if (unread)
   try {
     return current;
   } finally {
     unread = false;
   }
  else if (current.nextMarker().isPresent())
   return current = markerToNext.apply(current.nextMarker().get());
  else
   return endOfData();
}
origin: Nextdoor/bender

@Override
protected IterableWithMarker<T> computeNext() {
  if (unread)
   try {
     return current;
   } finally {
     unread = false;
   }
  else if (current.nextMarker().isPresent())
   return current = markerToNext.apply(current.nextMarker().get());
  else
   return endOfData();
}
origin: jclouds/legacy-jclouds

 @Override
 public Optional<Object> nextMarker() {
   return delegate().nextMarker();
 }
}
origin: org.jclouds/jclouds-core

 @Override
 public Optional<Object> nextMarker() {
   return delegate().nextMarker();
 }
}
origin: Nextdoor/bender

 @Override
 public Optional<Object> nextMarker() {
   return delegate().nextMarker();
 }
}
origin: io.cloudsoft.jclouds/jclouds-core

 @Override
 public Optional<Object> nextMarker() {
   return delegate().nextMarker();
 }
}
origin: com.amysta.jclouds/jclouds-core

 @Override
 public Optional<Object> nextMarker() {
   return delegate().nextMarker();
 }
}
origin: apache/jclouds

 @Override
 public Optional<Object> nextMarker() {
   return delegate().nextMarker();
 }
}
origin: jclouds/legacy-jclouds

@Override
public PagedIterable<T> apply(IterableWithMarker<T> input) {
 if (!input.nextMarker().isPresent())
   return onlyPage(input);
 List<Object> args = getArgs(request);
 Optional<Object> arg0 = Optional.fromNullable(args.size() > 0 ? args.get(0) : null);
 return advance(input, markerToNextForArg0(arg0));
}
origin: org.jclouds/jclouds-core

@Override
public PagedIterable<T> apply(IterableWithMarker<T> input) {
 if (!input.nextMarker().isPresent())
   return onlyPage(input);
 List<Object> args = getArgs(request);
 Optional<Object> arg0 = Optional.fromNullable(args.size() > 0 ? args.get(0) : null);
 return advance(input, markerToNextForArg0(arg0));
}
origin: jclouds/legacy-jclouds

@Override
public PagedIterable<T> apply(IterableWithMarker<T> input) {
 if (input.nextMarker() == null)
   return PagedIterables.of(input);
 Optional<String> arg0Option = Optional.absent();
 if (request.getCaller().get().getArgs().size() > 0) {
   Object arg0 = request.getCaller().get().getArgs().get(0);
   if (arg0 != null)
    arg0Option = Optional.of(arg0.toString());
 }
 final String arg0 = arg0Option.orNull();
 return PagedIterables.advance(input, markerToNextForCallingArg0(arg0));
}
origin: jclouds/legacy-jclouds

  @Test
  public void testMarkerEqual() {

   IterableWithMarker<String> initial = IterableWithMarkers.from(ImmutableSet.of("foo", "bar"), "MARKER");
   Assert.assertEquals(initial.toSet(), ImmutableSet.of("foo", "bar"));
   Assert.assertEquals(initial.nextMarker(), Optional.of("MARKER"));
  }
}
origin: jclouds/legacy-jclouds

@Test
public void testElementsEqual() {
 IterableWithMarker<String> initial = IterableWithMarkers.from(ImmutableSet.of("foo", "bar"));
 Assert.assertEquals(initial.toSet(), ImmutableSet.of("foo", "bar"));
 Assert.assertEquals(initial.nextMarker(), Optional.absent());
}
origin: apache/jclouds

@Test
public void testElementsEqual() {
 IterableWithMarker<String> initial = IterableWithMarkers.from(ImmutableSet.of("foo", "bar"));
 Assert.assertEquals(initial.toSet(), ImmutableSet.of("foo", "bar"));
 Assert.assertEquals(initial.nextMarker(), Optional.absent());
}
origin: jclouds/legacy-jclouds

/**
* Tests parsing all possible XML elements that could be encountered by {@link ListAlarmHistoryResponseHandler}.
*
* @throws Exception if something goes wrong
*/
public void testParseFullResponse() throws Exception {
 IterableWithMarker<AlarmHistoryItem> alarmHistoryItems =
    factory.create(injector.getInstance(ListAlarmHistoryResponseHandler.class))
        .parse(getClass().getResourceAsStream("/DescribeAlarmHistoryResponse.xml"));
 assertEquals(alarmHistoryItems.toString(), expected().toString());
 assertFalse(alarmHistoryItems.nextMarker().isPresent());
}
origin: jclouds/legacy-jclouds

/**
* Tests parsing all possible XML elements that could be encountered by {@link ListAlarmsResponseHandler}.
*
* @throws Exception if something goes wrong
*/
public void testParseFullResponse() throws Exception {
 IterableWithMarker<Alarm> metricAlarms =
    factory.create(injector.getInstance(ListAlarmsResponseHandler.class))
        .parse(getClass().getResourceAsStream("/DescribeAlarmsResponse.xml"));
 assertEquals(metricAlarms.toString(), expected().toString());
 assertFalse(metricAlarms.nextMarker().isPresent());
}
origin: apache/jclouds

/**
* Tests parsing all possible XML elements that could be encountered by {@link ListAlarmHistoryResponseHandler}.
*
* @throws Exception if something goes wrong
*/
public void testParseFullResponse() throws Exception {
 IterableWithMarker<AlarmHistoryItem> alarmHistoryItems =
    factory.create(injector.getInstance(ListAlarmHistoryResponseHandler.class))
        .parse(getClass().getResourceAsStream("/DescribeAlarmHistoryResponse.xml"));
 assertEquals(alarmHistoryItems.toString(), expected().toString());
 assertFalse(alarmHistoryItems.nextMarker().isPresent());
}
origin: apache/jclouds

/**
* Tests parsing all possible XML elements that could be encountered by {@link ListAlarmsResponseHandler}.
*
* @throws Exception if something goes wrong
*/
public void testParseFullResponse() throws Exception {
 IterableWithMarker<Alarm> metricAlarms =
    factory.create(injector.getInstance(ListAlarmsResponseHandler.class))
        .parse(getClass().getResourceAsStream("/DescribeAlarmsResponse.xml"));
 assertEquals(metricAlarms.toString(), expected().toString());
 assertFalse(metricAlarms.nextMarker().isPresent());
}
org.jclouds.collectIterableWithMarkernextMarker

Javadoc

If there is a next marker, then the set is incomplete and you should issue another command to retrieve the rest, setting the option marker to this value

Popular methods of IterableWithMarker

  • iterator
  • toSet
  • toString
  • allMatch
  • isEmpty
  • size
  • first

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Permission (java.security)
    Legacy security code; do not use.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • JButton (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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