Codota Logo
ThreadedFeatureInputStream
Code IndexAdd Codota to your IDE (free)

How to use
ThreadedFeatureInputStream
in
org.deegree.feature.stream

Best Java code snippets using org.deegree.feature.stream.ThreadedFeatureInputStream (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: deegree/deegree3

@Override
public int count() {
  int i = 0;
  for ( @SuppressWarnings("unused")
  Feature f : this ) {
    i++;
  }
  close();
  return i;
}
origin: deegree/deegree3

@Override
public void render( RenderContext context ) throws InterruptedException {
  FeatureInputStream features = null;
  try {
    // TODO Should this always be done on this level? What about queueSize value?
    features = featureStore.query( queries.toArray( new Query[queries.size()] ) );
    features = new ThreadedFeatureInputStream( features, 100 );
    FeatureStreamRenderer renderer = new FeatureStreamRenderer( context, maxFeatures, evaluator );
    renderer.renderFeatureStream( features, style );
  } catch ( InterruptedException e ) {
    throw e;
  } catch ( FilterEvaluationException e ) {
    LOG.warn( "A filter could not be evaluated. The error was '{}'.", e.getLocalizedMessage() );
    LOG.trace( "Stack trace:", e );
  } catch ( Throwable e ) {
    LOG.warn( "Data could not be fetched from the feature store. The error was '{}'.", e.getLocalizedMessage() );
    LOG.trace( "Stack trace:", e );
  } finally {
    if ( features != null ) {
      features.close();
    }
  }
}
origin: deegree/deegree3

  ThreadedFeatureInputStream.shutdown();
} catch ( Throwable e ) {
org.deegree.feature.streamThreadedFeatureInputStream

Javadoc

FeatureInputStream that uses a separate thread to keep an internal queue of features filled.

Most used methods

  • <init>
    Creates a new ThreadedFeatureInputStreamTest based on the given FeatureInputStream.
  • close
  • shutdown

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • requestLocationUpdates (LocationManager)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Notification (javax.management)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now